﻿using System;
using System.Globalization;
using System.Threading;
using sdamarketing.App_Code;


namespace sdamarketing.Account
{
    public partial class Home : BasePage
    {

        protected void Page_Load(object sender, EventArgs e)
        {
            
           
            //Label1.Text = "path :"+Request.Path + " apppath " + Request.ApplicationPath + "  PhysicalApplicationPa " + Request.PhysicalApplicationPath;
            //Label1.Text += Request.RawUrl + " " + Request.AppRelativeCurrentExecutionFilePath;
        }

        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        /*<object width="580" height="360">
         * <param name="movie" value="http://www.youtube.com/v/-jbzHPa1VgI&hl=en_US&fs=1&border=1"></param>
         * <param name="allowFullScreen" value="true"></param>
         * <param name="allowscriptaccess" value="always"></param>
         * <embed src="http://www.youtube.com/v/-jbzHPa1VgI&hl=en_US&fs=1&border=1" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="580" height="360">
         * </embed>
         * </object>
                protected void Button1_Click(object sender, EventArgs e)
                {
         * Uri  videoEntryUrl = 
          new Uri("http://gdata.youtube.com/feeds/api/videos/ADos_xW4_J0"); 
        Video video = request.Retrieve<Video>(videoEntryUrl);
        printVideoEntry(videoEntry);
              //      string text = " ";

                    DataSet temp = ReturnDataSet.ReturSet("SELECT dateOfViewing,ChanelId,startMinute,Length FROM Data");
                    for (int i = 0; i < temp.Tables["DataSet"].Rows.Count; i++)
                    {
                        int length = Int32.Parse(temp.Tables["DataSet"].Rows[i].ItemArray[3].ToString());

                        for (int j = 1; j < length; j++)
                        {
                            DateTime date = DateTime.Parse(temp.Tables["DataSet"].Rows[i].ItemArray[0].ToString());

                            int time = Int32.Parse(temp.Tables["DataSet"].Rows[i].ItemArray[2].ToString()) - 120;

                            int hour = (time + j) / 60;
                            int min = (time + j) % 60;

                            DateTime final = DateTime.Parse(date.ToShortDateString() + " " + hour.ToString() + ":" + min.ToString() + ":00");
                         //   text = text + final.ToString() + " MIN " + min.ToString() + " SAATI " + hour.ToString() +  "  ---NOV---  " + "</br>";


                            FillTheDateTimeTable.fillTable(final, temp.Tables["DataSet"].Rows[i].ItemArray[1].ToString());
                        }
                    }
              //      Label1.Text = text;

                }
         */
    }
}